package com.chaopei.day35.controller;

import com.chaopei.day35.entity.Cool;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author yws
 * @Date 2022/4/20 17:47
 */
@RestController
public class MyController {
    @RequestMapping("/")
    public List<Cool> go(){
        List<Cool> list= new ArrayList<>();
        list.add(new Cool(1001,"mary"));
        list.add(new Cool(1002,"tina"));
        return list;
    }
}
